Build-versus-buy decisions made without a total-cost view tend to look right on the day they're signed off and expensive two years later, once implementation and maintenance costs surface.